home *** CD-ROM | disk | FTP | other *** search
/ Floppyshop 2 / Floppyshop - 2.zip / Floppyshop - 2.iso / diskmags / 4671-5.790 / dmg-5655 / kit2game.txt < prev    next >
Text File  |  1996-04-22  |  6KB  |  122 lines

  1.                             THE  THIRD  DIMENSION
  2.  
  3.           3DKIT 2  TUTORIAL GAME FOR BEGINNERS: MISSION (IM)POSSIBLE
  4.           ----------------------------------------------------------
  5.  
  6.                                  Part 12
  7.  
  8.      Welcome to part 12 of our tutorial game.
  9.      This time I'm going to add a new variable to the Mission game
  10.      for the waterbottles in Mission 3.
  11.      For this purpose I have to add one line to the Initial Condition:
  12.                       SETVAR (0,V36)
  13.      On the Amiga/Atari this line is added to the Initial Condition of
  14.      the whole datafile.
  15.      On the PC I only have to type it into the Initial Condition of
  16.      the Mission 3 datafile.
  17.      The next thing to do is to make a condition for each waterbottle
  18.      to be picked up. I therefore have to go to area desert1 (and 2),
  19.      and I take the cube object of each waterbottle group.
  20.      You can find the object number(s) by looking at the attributes of
  21.      each group. I click on the condition icon (i.e. the question mark
  22.      ?). In the requester I click on the number of the object, click
  23.      on OK and in the Edit Object Condition field I type in the following:
  24.  
  25.             AMIGA/ATARI                                 PC
  26.  IF ACTIVATED?                          IF ACTIVATED?
  27.  THEN                                   THEN 
  28.  SOUND (3)                              SOUND (18)
  29.  DELAY (50)                             DELAY (50)
  30.  PRINT ("YOU DRINK FROM THE WATER..",3) PRINT ("YOU DRINK FROM THE WATER..",3)
  31.  SOUND (13)                             SOUND (13)
  32.  DELAY (150)                            DELAY (150)
  33.  PRINT ("AND FEEL REFRESHED!...    ",3) PRINT ("AND FEEL REFRESHED!...    ",3)
  34.  SOUND (13)                             SOUND (13)
  35.  DELAY (150)                            DELAY (150)
  36.  PRINT ("                          ",3) PRINT ("                          ",3)
  37.  INVIS (14)                             INVIS (42)
  38.  ADDVAR (20,V32) - add credits          ADDVAR (20,V32) - add credits
  39.  ADDVAR (100,V31)- extra power          ADDVAR (100,V31)- extra power
  40.  ADDVAR (1,V36)  - add 1 bottle         ADDVAR (1,V36)  - add 1 bottle
  41.  ENDIF                                  ENDIF
  42.  
  43.      I save this condition as a textfile, so I can load it in for each
  44.      of the remaining 4 cubes (as we have 5 waterbottles).
  45.      The only thing I have to change in the above condition is the
  46.      INVIS command so that the correct waterbottle-group will disappear:
  47.  
  48.      For AMIGA/ATARI these group numbers are:
  49.                  14 and 17 in desert 1
  50.                  14, 17 and 50 in desert 2
  51.  
  52.      For PC: 42 and 47 in desert 1
  53.              42, 50 and 47 in desert 2.
  54.  
  55.      Next I will add some Local Conditions. The first 2 will be present
  56.      in all three desert areas, the 3rd one in desert 1 and 2.
  57.      So I go to the Mission 3 area, click on the Conditions Menu, click
  58.      on Local Conditions and then click on create. For this area I do
  59.      this 2 times. I go to the desert1 area and create 3 Local Conditions
  60.      and I do the same in desert2.
  61.      Back in the Mission3 area I edit Local Condition 1 as follows:
  62.                 FOR (V35,0,100) - timer
  63.                 WAIT
  64.                 NEXT
  65.                 SUBVAR (5,V31) - decrease power
  66.                 SOUND (7)
  67.      I save this condition and then also load it in in desert1 and
  68.      desert2 Local Condition 1.
  69.      This condition is the same for all three computers. On the PC
  70.      it works correctly on a 386 PC. If you have a 486 or faster
  71.      computer you should increase the timer delay (1000 instead of 100).
  72.  
  73.      I edit Local Condition 2 in the Mission3 area as follows:
  74.                   IF VARLT? (V31,900) - power low?
  75.                   THEN
  76.                   PRINT ("You are very thirsty....",3)
  77.                   SOUND (17)
  78.                   FOR (V35,0,1500) - timer
  79.                   WAIT
  80.                   NEXT
  81.                   ENDIF
  82.       This condition is the same for all three computers. After saving
  83.       it, I load it into Local Condition nr. 2 in desert1 and desert2.
  84.  
  85.       Next I go to area desert1. I edit Local Condition 3 as follows:
  86.        IF VAREQ? (V36,5) - 5 bottles in possession?
  87.        THEN
  88.        SOUND (6)
  89.        DELAY (50)
  90.        VIS (78,5) - PC: VIS (84,3) - Make entrance 5 visible in main desert
  91.        PRINT ("You found the waterbottles!",3)
  92.        DELAY (150)
  93.        SOUND (4)  - PC: SOUND (1)
  94.        DELAY (150)
  95.        PRINT ("Now go and find the exit....",3)
  96.        SOUND (4) - PC: SOUND (1)
  97.        DELAY (150)
  98.        PRINT ("TO YOUR CITY....            ",3)
  99.        SOUND (4) - PC: SOUND (1)
  100.        DELAY (150)
  101.        PRINT ("                            ",3)
  102.        GOTO (1,5) - PC GOTO (1,3)
  103.        ENDIF
  104.       I save this condition and place it also in Local Condition 3 in
  105.       desert2.
  106.  
  107.       If all is well, after the execution of this condition the invisible
  108.       entrance in the Mission3 area should be visible.
  109.       It has already its condition to go to the City area but this area
  110.       is not yet present in the datafiles. I will add it next month,
  111.       together with another General Condition which will also hold
  112.       another variable to count the amount of levels successfully
  113.       finished. After that it is also possible to add passwords to
  114.       our game. This will all be explained in the next part of this
  115.       tutorial.
  116.       For now, try to find all 5 waterbottles (even I didn't find
  117.       them all up till now!) and complete the mission so far.
  118.       Have fun!
  119.                                             Mieke
  120.  
  121.    
  122.